import axios from 'axios';

export interface QuesData {
  title: string;
  [key: string]: any;
}

// 添加题目
export function addQuestion(data: QuesData) {
  return axios.post<any>('/question', data);
}
//  查询公司列表
export interface CompanyQuery {
  $limit: number;
  name?: string;
  $skip?: number;
}

export function getQuestion(params: CompanyQuery) {
  return axios.get<any>('/question', { params });
}
